package com.znf4.platform.resource.mechanics.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.look.entity.Look;
import com.znf4.look.mapper.LookMapper;
import com.znf4.look.server.LookServer;
import com.znf4.platform.resource.mechanics.entity.Mechanics;
import com.znf4.platform.resource.mechanics.mapper.MechanicsMapper;
import com.znf4.platform.resource.mechanics.server.MechanicsServer;

@Service
public class MechanicsServerImpl implements MechanicsServer {
	
	@Autowired
	private MechanicsMapper mechanicsMapper ;
	

	public void addMechanics(Mechanics mechanics) {
		mechanicsMapper.insert(mechanics);
		
	}

	public void updateMechanics(Mechanics mechanics) {
		mechanicsMapper.update(mechanics);
		
	}

	public void delOneMechanics(Mechanics mechanics) {
		mechanicsMapper.deleteOne(mechanics);
		
	}

	public void delAllMechanics(List<Mechanics> list) {
		mechanicsMapper.deleteAll(list);
		
	}

	public Mechanics queryOne(Mechanics mechanics) {
		return mechanicsMapper.queryOne(mechanics);
	}

	public List<Mechanics> queryAll(Mechanics mechanics) {
		return mechanicsMapper.queryAll(mechanics);
	}
	
	

	
	
	
	
	
	

}
